import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/home.vue'
import Login from '@/views/login.vue'
import S from '@/views/s.vue'
import G from '@/views/g.vue'
import M from '@/views/m.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      component: Home,
      children: [{
        path: 'login',
        component: Login,
      },
      {
        path: 's',
        component: S,

      },
      {
        path: 'g',
        component: G,

      },
      {
        path: 'm',
        component: M,

      }
    ]
    },

  ],
})

export default router
